package com.example.network

/**
 * author: liliang
 * date: 1/19/21 9:29 PM
 * desc:
 */
sealed class ApiResult<out T> {

    data class Success<out T>(val data: T) : ApiResult<T>()
    data class Failure(val errorCode: Int, val errorMsg: String) : ApiResult<Nothing>()
}